package com.rd.student.jiaji.class3.qinjialin.answer;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.util.ArrayList;
import java.util.Scanner;


import java.io.*;
import java.util.ArrayList;
import java.util.Scanner;

public interface Quesitions2 {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        System.out.println("查询名字：");
        String name = sc.next();
        ArrayList<String> p = new ArrayList<>();
        Reader re = new FileReader("player.txt");
        BufferedReader bb = new BufferedReader(re);
        String a;
        while ((a = bb.readLine()) != null) {
            p.add(a);
        }
        if (p.contains(name)) {
            System.out.println(name + ",");
        }


    }
}
